namespace IRobot
{
    public class Cell
    {
        public readonly int X;
        public readonly int Y;

        public Cell(int x, int y)
        {
            X = x;
            Y= y;
        }

        public override bool Equals(object obj)
        {
            var other = obj as Cell;
            if (other == null) return false;

            return other.X == X && other.Y == Y;
        }

        public override string ToString()
        {
            return string.Format("x={0}, y={1}", X, Y);
        }
    }
}